package com.example.demo.dao;

import com.example.demo.entity.CK;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface CKRepository extends JpaRepository<CK, Integer> {

    @Query(value = "select * from ck where ckno=:ckno", nativeQuery = true)
    CK findByCkno(@Param("ckno") String ckno);
}
